How can I perform unit tests with assertions for a method in Android Studio